package com.lmk.t02;

public class Test01 {
    public static void main(String[] args) {
//        String s1="张三";//双引号引起来的叫字面量 是一个常量
//        System.out.println(s1.length());
//        String  s2=new String("软硬科技");
//        System.out.println(s2.length());
//        String s3=new String("软硬科技");;
//        System.out.println(s3.length());
//        System.out.println(s2==s3);
//        System.out.println(s2.equals(s3));
//
        String a="ab";
        String c="cd";
        String d=a+c;
        String e="abcd";
        System.out.println(d==e);
        System.out.println(d.equals(e));
        System.out.println("+=================================");
        String s1="person";
        String s2="Person";
        System.out.println(s1.equals(s2));
        System.out.println(s1.equalsIgnoreCase(s2));

    }
}
